from django.contrib import admin

# Register your models here.
# tasks/admin.py
admin.site.site_header = '疫情管理后台'  # 设置header
admin.site.site_title = '疫情管理后台'  # 设置title
admin.site.index_title = '疫情管理后台'
from .models import Cov, Knowledge


@admin.register(Cov)
class AuthorAdmin(admin.ModelAdmin):
    list_display = ('update_time', 'province', 'city', 'confirm', 'confirm_add', 'heal')

@admin.register(Knowledge)
class AuthorAdmin(admin.ModelAdmin):
    list_display = ('title', 'text', 'create_time')

